package cn.liuhuan1.mongoDb;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;

/**
 * @Auther: liuhuan
 * @Date: 2021/1/20 - 01 - 20 - 14:47
 * @Description:
 * @version: 1.0
 */
@SpringBootApplication
// EnableEurekaClient（这个只能作为 eureka 为注册中心时 使用） 和  EnableDiscoveryClient（这个则都可以） 区别
@EnableDiscoveryClient
@ComponentScans(@ComponentScan({"cn.liuhuan1.*"}))
public class SpringMongoStart {

    public static void main(String[] args) {
        SpringApplication.run(SpringMongoStart.class,args);
    }
}
